module Exoskeleton
  module Generators
    class FoldersGenerator < Rails::Generators::Base

      def build_folder_structure

        views_folder = "app/assets/javascripts/backbone/views"
        models_folder = "app/assets/javascripts/backbone/models"
        collections_folder = "app/assets/javascripts/backbone/collections"
        templates_folder = "app/assets/javascripts/backbone/templates"

        empty_directory views_folder
        create_file "#{views_folder}/.keep"

        empty_directory models_folder
        create_file "#{models_folder}/.keep"

        empty_directory collections_folder
        create_file "#{collections_folder}/.keep"

        empty_directory templates_folder
        create_file "#{templates_folder}/.keep"

      end

    end
  end
end
